code_checker.cli

Members

Enums

AppMode
enum AppMode
Undocumented in source.

Functions

loadConfig
void loadConfig(Config rval, string configFile)

Load the configuration from file.

parseCLI
void parseCLI(string[] args, Config conf)
Undocumented in source. Be warned that the author may not have intended to support it.
parseConfigCLI
MiniConfig parseConfigCLI(string[] args)
parseDict
string[string] parseDict(TOMLValue root, string section)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Compiler
struct Compiler

Settings for the compiler

Config
struct Config

Configuration of how to use the program.

ConfigClangTidy
struct ConfigClangTidy

Configuration options only relevant for clang-tidy.

ConfigCompileDb
struct ConfigCompileDb

Configuration data for the compile_commands.json

ConfigIwyu
struct ConfigIwyu

Configuration options only relevant for iwyu.

ConfigStaticCode
struct ConfigStaticCode

Configuration options only relevant for static code checkers.

Logging
struct Logging

Settings for logging.

MiniConfig
struct MiniConfig

Minimal config to setup path to config file and workdir.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This file contains the command line parsing and configuration loading from file.

The data flow is to first load the configuration from the file then parse the command line. This allows the user to override the configuration via the CLI.